import request from '@/utils/request'

export function getNoticeCount (data) {
  return request({
    url: '/api/setting/notice/get_count',
    method: 'post',
    data
  })
}

export function getNoticeList (data) {
  return request({
    url: '/api/setting/notice/index',
    method: 'post',
    data
  })
}

export function lookNotice (data) {
  return request({
    url: '/api/setting/notice/look_over',
    method: 'post',
    data
  })
}

export function sendNotice (data) {
  return request({
    url: '/api/setting/notice/send_notice',
    method: 'post',
    data
  })
}

export function meNotice (data) {
  return request({
    url: '/api/setting/notice/to_me',
    method: 'post',
    data
  })
}

export function emailInfo (data) {
  return request({
    url: '/api/email/index',
    method: 'post',
    data
  })
}

export function emailInfoShow (data) {
  return request({
    url: '/api/email/show',
    method: 'post',
    data
  })
}
